import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-parent',
    templateUrl: './parent.component.html',
    styleUrls: ['./parent.component.less']
})
export class ParentComponent implements OnInit {

    msg = "字符串";
    num = 1234;
    arr = [1,2,3,4,5];
    user = {
        name: "tom",
        age:23
    }
    info;
    constructor() { }

    ngOnInit() {
    }

    parentFun(arg){
        console.log("parentComponent=parentFun:",arg)
        this.info = arg;
    }
}
